package model.classes;

/**
 * Speed vector object. 
 * Store horizontal and vertical speed of an object.
 * 
 * @implements java.lang.Cloneable
 * @author alexandre.altun
 */
public class Speed implements Cloneable {
	
	public float speedX = 0;
	public float speedY = 0;
	
	public Speed() {
	}
	
	public Speed(float speedX, float speedY) {
		this.speedX = speedX;
		this.speedY = speedY;
	}
	
	public Object clone() {
		Object o = null;
		try {
			o = super.clone();
		} catch(CloneNotSupportedException cnse) {
			cnse.printStackTrace(System.err);
		}
		
		return o;
	}
	
}
